<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $page_title ?></title>
        <?php
        echo link_tag('assets/bootstrap/css/bootstrap.css');
        echo link_tag('assets/css/datepicker.css');
        echo link_tag('assets/css/flat-ui.css');
        echo link_tag('assets/css/style.css');
        echo link_tag('assets/engine1/style.css');
        
        // echo link_tag('assets/images/favicon.ico');
        ?>
        
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript"></script>
    
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/engine1/jquery.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/prmajax.js"></script>
    </head>
    <body>
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
    <header>
        <div class="header-top">
            <div class="container">
                        <div class="account pull-right">
                            
                            <?php if (!$isLogin) {
                                ?>
                                <?php echo anchor(site_url('registration'), 'Register'); ?> |
                                <a href="#myLogin" data-toggle="modal">Login</a> |
                                <?php //echo anchor(site_url('flogin'), 'Register'); ?> 
                            <?php } ?>
                            <?php if ($isLogin) {
                                ?>
                                <?php echo 'Welcome, ' .  $this->session->userdata('nama_depan'); ?>|
                                <?php //echo 'level: ' . $this->session->userdata('nama_depan'); ?>
                                <?php echo anchor(site_url('admin/dashboard'), 'Dashboard'); ?> |
                                <?php echo anchor(site_url('flogin/logout'), 'Logout'); ?> |
                            <?php } ?>
                            
                            <?php echo anchor(site_url('penjual_langsung'), 'Penjual Langsung'); ?> |
                            
                        </div>
              
        
            </div>
        </div>
        <?php
        ?>
        <div class="navigation">
            <div class="container">
                <div class="row">
                        <div class="navbar navbar-inverse">
                            <div class="navbar-inner">
                                <div id="nav-collapse-01" class="nav-collapse colalpse">
                                    <ul class="nav">
                                        <li class="<?php if ($this->session->userdata('page') == 1) echo 'active'; ?>"><?php echo anchor(base_url(), 'Home'); ?></li>
                                        <li class="<?php if ($this->session->userdata('page') == 2) echo 'active'; ?>">
                                            <?php echo anchor(site_url('search/cari?mode=1'), 'Cari properti'); ?>
                                            <ul>
                                                <li><a href="<?php echo site_url('search/cari?mode=1&search=') ?>">Untuk dijual</a>
                                                    <ul>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=1&search=') ?>">Rumah</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=2&search=') ?>">Apartemen</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=3&search=') ?>">Tanah</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=4&search=') ?>">Ruko dan Kios</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=5&search=') ?>">Ruang Kantor</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=6&search=') ?>">Inde Kost</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=7&search=') ?>">Hotel dan Villa</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=8&search=') ?>">Gudang</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=1&tipe=9&search=') ?>">Lainnya</a></li>
                                                    </ul>
                                                </li>
                                                <li><a href="<?php echo site_url('search/cari?mode=2&search=') ?>">Untuk disewa</a>
                                                    <ul>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=1&search=') ?>">Rumah</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=2&search=') ?>">Apartemen</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=3&search=') ?>">Tanah</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=4&search=') ?>">Ruko dan Kios</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=5&search=') ?>">Ruang Kantor</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=6&search=') ?>">Inde Kost</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=7&search=') ?>">Hotel dan Villa</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=8&search=') ?>">Gudang</a></li>
                                                        <li><a href="<?php echo site_url('search/cari?mode=2&tipe=9&search=') ?>">Lainnya</a></li>
                                                    </ul>
                                                </li>
                                                <li><a href="#">Untuk dilelang</a></li>
                                            </ul>
                                        </li>
                                        <li class="<?php if ($this->session->userdata('page') == 3) echo 'active'; ?>"><?php echo anchor(site_url('properti_baru'), 'Properti Baru'); ?></li>
                                        <li class="<?php if ($this->session->userdata('page') == 4) echo 'active'; ?>"><?php echo anchor(site_url('agen/cari'), 'Cari Agen'); ?></li>
                                        <li class="<?php if ($this->session->userdata('page') == 5) echo 'active'; ?>"><a href="<?php echo site_url('dekorasi'); ?>">Desain dan Dekorasi</a></li>
                                        <li class="<?php if ($this->session->userdata('page') == 6) echo 'active'; ?>"><a href="#">Berita dan Forum</a></li>
                                        <li class="<?php if ($this->session->userdata('page') == 7) echo 'active'; ?>"><a href="<?php echo site_url('iklan_baris'); ?>">Iklan Baris</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                </div>
            </div>
        </div>
    </header>
    <script type="text/javascript">
        $(document).ready(function(){
     
    $('#input-form').validate(
    {
    rules: {
        name: {
        minlength: 2,
        required: true
        },
        nama_depan: {
        minlength: 2,
        required: true
        },
        nama_belakang: {
        minlength: 2,
        required: true
        },
        username: {
        minlength: 2,
        required: true
        },
        password: {
        minlength: 2,
        required: true
        },
        password_again: {
        minlength: 2,
        required: true,
        equalTo: "#password"
        },
        email: {
        required: true,
        email: true
        },
        tel:{
        number: true
        },
        subject: {
        minlength: 2,
        required: true
        },
        message: {
        minlength: 2,
        required: true
        }
    },
    highlight: function(element) {
    $(element).closest('.control-group').removeClass('success').addClass('error');
    },
    success: function(element) {
    element
    .text('OK!').addClass('valid')
    .closest('.control-group').removeClass('error').addClass('success');
    }
    });
    }); // end document.ready
    </script>